from django.http import JsonResponse
from django.shortcuts import render

# Create your views here.
from django.views import View

from drf.serialzier import UserSerialzier
from users.models import User


class DrfUsers(View):
    def get(self,request):
        users=User.objects.all()
        ser=UserSerialzier(users,many=True)
        return  JsonResponse(ser.data,safe=False)